﻿function btn_UpGoods() {
    
    var quntity = $("#myModal_UpGoods form input[name='Quntity']");

    if (quntity.val() != "") {
        
        if (valInt(quntity.val())) {
            //提交

            
            $.ajax({
                type: "POST",
                url: "Admin/btn_UpGoods",
                data: "GoodsID=" + $("#myModal_UpGoods form input[name='GoodsID']").val() +
                    "&Quntity=" + $("#myModal_UpGoods form input[name='Quntity']").val() ,
                  
                success: function (msg) {
                    if (msg == "ok") {
                        //alert("Data Saved: " + msg);
                        //IsSale = true;
                        $("#myModal_UpGoods").modal('toggle');

                    }

                }
            });
        }
        else {
            $("#myModal_UpGoods .modal-footer span").html('数量必须整数!');

        }


    }

    else {
        $("#myModal_UpGoods .modal-footer span").html('数量不能为空!');
    }

}